#include <iostream>
#include <string>
#include <vector>
using namespace std;


//TODO
int strToInt(const std::string s){
    int length=s.size();
    int count=0;
    int sign=1;
    if (s[0]=='-'){
        sign=-1;
        count++;
    }
    else if (s[0]=='+'){
        count++;
    }
    int number=0;
    for (count;count<length;count++){
        if (!(s[count]>='0'&&s[count]<='9')){break;}
        number=number*10+s[count]-'0';
    }
    return sign*number;
}

int main(){
    string s;
    cin>>s;
    int result=strToInt(s);
    cout<<result<<endl;
    return 0;
}